package com.mengxuegu.oauth2.enums;

import lombok.Getter;

@Getter
public enum GrantTypeEnum {
    PASSWORD("password", "密码模式"),
    USER_PASSWORD("user_password", "用户名密码模式"),
    CLIENT_CREDENTIALS("client_credentials", "客户端模式"),
    AUTHORIZATION_CODE("authorization_code", "授权码模式"),
    SMS_CODE("sms_code", "手机验证模式");

    private String code;
    private String msg;

    private GrantTypeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
